<?php get_header();
if (file_exists(dirname(__FILE__) . '/config_index.php')) {
	require_once ('config_index.php');
}
?>
<div id="content" class="clear row">
    <div id="main" class="col-xs-12 col-md-8" role="main">
    <?php echo $notice;?>
    <div class="row" >
        <div class="col-xs-12 col-md-12">
            

        </div>
    </div>


            <div class="row">
<?php //echo search_tab("opac.niit.edu.cn", "www.duxiu.com.j.niit.edu.cn", "lib.niit.edu.cn/xd/Public/yidu_edu.html");?>
<?php echo search_tab("opac.niit.edu.cn", "", "lib.niit.edu.cn/xd/Public/yidu_edu.html");?>
</div>

            <div class="row">
<?php
echo book_tab2acc($book_carousel_cat, $book_carousel_count, $book_carousel_id, $book_carousel_show_desc);
?>
</div>
            <div class="row">
<?php
//book_carousel($book_carousel_cat, $book_carousel_count, $book_carousel_id,  true) ;
?>
</div>


            <div class="row">
<?php
$counts= count($cats);
$columns=0;
if ($counts%2 === 0) {
    $columns="col-xs-12 col-md-6";
}else{
    $columns="col-xs-12 col-md-4";
}
foreach ($cats as $cat) {

	echo '<div class="'.$columns.'" >';
	$category = $cat['cat_id'];
	$cat_img = $cat['cat_image'];
	$len_content = $cat['length_content'];
	$count = $cat['count'];
	//echo cat_list($cat['cat_id'], $cat['count'], $cat['cat_image'], $cat['length_content'], $len_title, $cat['num']);
	//echo cat_list_title($cat['cat_id'], $cat['count'], $len_title, true);
    echo cat_list_title_with_icon($cat['cat_id'], $cat['count'], $len_title, true,$cat['icon']);
	echo '</div>';
}
?>
</div>
<!--
<a href="<?php echo get_post_type_archive_link('meetings');?>">Book的归档链接</a>
-->
        <!-- end #main -->

    <!-- end row -->
</div>
<?php get_sidebar("sb_homepage");// sidebar 1 ?>
</div> <!-- end #content -->
<?php get_footer();?>
